import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/process/component/` + url, ...arg)

export default {
	async getHtml(code,version) {
		return await request(`html?code=${code}&version=${version}`, {}, 'get')
	},
	async list() {
		return await request(`list`, {}, 'post')
	},

	async queryVersionList(code) {
		return await request(`version_list?code=${code}`, {}, 'get')
	},

}

